package cn.gson.boot.model.pojos;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

/*客服*/

@Entity
public class Kefu {
    private int kfId;//客服id
    private Kehu kH;//客户id
    private String kfLeixing;//客服类型
    private String kfFangshi;//客服方式
    private Timestamp kfKaishitime;//客服开始时间
    private Timestamp kfJieshutime;//客服结束时间
    private String kfZhuangtai;//客服状态
    private String kefuzhixinren;//客服执行人
    private String kfNeirong;//客服内容
    private String kfFankui;//客服方式
    private String kfBeizhu;//客服备注

    private Integer kfYs;

    @Basic
    @Column(name = "kf_ys")
    public Integer getKfYs() {
        return kfYs;
    }

    public void setKfYs(Integer kfYs) {
        this.kfYs = kfYs;
    }

    @Id
    @Column(name = "kf_id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY,generator = "seq")
    public int getKfId() {
        return kfId;
    }

    public void setKfId(int kfId) {
        this.kfId = kfId;
    }

    @ManyToOne
    @JoinColumn(name = "k_id", referencedColumnName = "k_id")
    public Kehu getkH() {
        return kH;
    }

    public void setkH(Kehu kH) {
        this.kH = kH;
    }


    @Basic
    @Column(name = "kf_leixing", nullable = true, length = 200)
    public String getKfLeixing() {
        return kfLeixing;
    }

    public void setKfLeixing(String kfLeixing) {
        this.kfLeixing = kfLeixing;
    }

    @Basic
    @Column(name = "kf_fangshi", nullable = true, length = 200)
    public String getKfFangshi() {
        return kfFangshi;
    }

    public void setKfFangshi(String kfFangshi) {
        this.kfFangshi = kfFangshi;
    }

    @Basic
    @Column(name = "kf_kaishitime", nullable = true, length = 200)
    public Timestamp getKfKaishitime() {
        return kfKaishitime;
    }

    public void setKfKaishitime(Timestamp kfKaishitime) {
        this.kfKaishitime = kfKaishitime;
    }

    @Basic
    @Column(name = "kf_jieshutime", nullable = false)
    public Timestamp getKfJieshutime() {
        return kfJieshutime;
    }

    public void setKfJieshutime(Timestamp kfJieshutime) {
        this.kfJieshutime = kfJieshutime;
    }


    @Basic
    @Column(name = "kf_zhuangtai", nullable = false)
    public String getKfZhuangtai() {
        return kfZhuangtai;
    }

    public void setKfZhuangtai(String kfZhuangtai) {
        this.kfZhuangtai = kfZhuangtai;
    }

    @Basic
    @Column(name = "kefuzhixinren", nullable = true, length = 200)
    public String getKefuzhixinren() {
        return kefuzhixinren;
    }

    public void setKefuzhixinren(String kefuzhixinren) {
        this.kefuzhixinren = kefuzhixinren;
    }

    @Basic
    @Column(name = "kf_neirong", nullable = true, length = 200)
    public String getKfNeirong() {
        return kfNeirong;
    }

    public void setKfNeirong(String kfNeirong) {
        this.kfNeirong = kfNeirong;
    }

    @Basic
    @Column(name = "kf_fankui", nullable = true, length = 200)
    public String getKfFankui() {
        return kfFankui;
    }

    public void setKfFankui(String kfFankui) {
        this.kfFankui = kfFankui;
    }

    @Basic
    @Column(name = "kf_beizhu", nullable = true, length = 200)
    public String getKfBeizhu() {
        return kfBeizhu;
    }

    public void setKfBeizhu(String kfBeizhu) {
        this.kfBeizhu = kfBeizhu;
    }

}
